<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-html" prefix="html" %>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-logic" prefix="logic" %>
<%@ taglib uri="/terasoluna-struts" prefix="ts" %>
<%@ taglib uri="/terasoluna" prefix="t" %>
<%@ taglib uri="/terasoluna-library" prefix="tl" %>
<%@ taglib uri="/self" prefix="self" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String imagePath = basePath + "admin/images";
%>
<html>
<head>
<title></title>
<link href="<%=request.getContextPath()%>/admin/css/tcmsystem.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="javascript/jquery-1.7.1.js"></script>
<script type="text/javascript" src="javascript/tcmsystem.js"></script>
<base target="_self">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="<%=imagePath%>/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="<%=imagePath%>/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="<%=imagePath%>/tb.gif" width="16" height="16" /></div></td>
                <td width="95%" class="STYLE1"><span class="STYLE3">请选择企业</span></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="<%=imagePath%>/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="<%=imagePath%>/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
          <html:form action="/selectEnterprise.do" method="post" styleId="queryForm">
          <tr>
            <td width="100%" colspan="3" height="20" bgcolor="#FFFFFF" >
              <html:text property="enterpriseName"></html:text>
              <html:hidden property="pageIndex" value="1"/>
              <html:submit value="检索" />
            </td>
          </tr>
          </html:form>
          <tr>
            <td width="5%" height="22" background="<%=imagePath%>/title_bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">序号</span></div></td>
            <td width="30%" height="22" background="<%=imagePath%>/title_bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">企业名称</span></div></td>
            <td width="20%" height="22" background="<%=imagePath%>/title_bg.gif" bgcolor="#FFFFFF" class="STYLE1"><div align="center">操作</div></td>
          </tr>
          <logic:iterate id="enterprise" name="enterpriseList" scope="request" indexId="number">
          <tr>
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE1">
              <bean:define id="pageStartRow" name="pageBean" property="pageStartRow" type="java.lang.Integer"></bean:define>
              <div align="center"><%=pageStartRow + number%></div>
            </div></td>
            <td height="20" align="center" bgcolor="#FFFFFF">
            <span class="STYLE1"><bean:write name="enterprise" property="enterpriseName"/></span>
            </td>
            <td height="20" bgcolor="#FFFFFF" align="center">
            <span class="STYLE4">
            <a href="#" onclick="selectEnterprise('<bean:write name="enterprise" property="enterpriseName"/>','<bean:write name="enterprise" property="enterpriseId"/>')">选择</a>
            </span>
            </td>
          </tr>
          </logic:iterate>
        </table></td>
        <td width="8" background="<%=imagePath%>/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <html:form action="/selectEnterprise.do" method="post" styleId="pageForm">
  <tr>
    <td height="35" background="<%=imagePath%>/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="<%=imagePath%>/tab_18.gif" width="12" height="35" /></td>
        <td>
        <self:pager formId="pageForm" indexProperty="pageIndex" pageBeanName="pageBean" scope="request"/>
        <html:hidden property="pageIndex"/>
        </td>
        <td width="16"><img src="<%=imagePath%>/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table></td>
  </tr>
  </html:form>
</table>
</body>
</html>
